import numpy as np
arr1 = np.random.random(10)
print('十个随机数: \n',arr1)

arr2 = np.random.rand(2,3)
print('rand函数: \n',arr2)

arr3 =np.random.randn(2,3)
print('randn函数: \n',arr3)

arr4= np.random.randint(1,9,size=[2,3])
print('randint函数: \n',arr4)

